OPC Studio User's Guide and Reference
UAEnumDefinition Constructor(IEnumerable<String>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeSchema Namespace > UAEnumDefinition Class > UAEnumDefinition Constructor : UAEnumDefinition Constructor(IEnumerable<String>)
Names of enum fields.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new enum definition with given field names, and values starting from 0 and incrementing by 1.
Syntax
'Declaration
 
Public Function New( _
   ByVal fieldNames As IEnumerable(Of String) _
)
'Usage
 
Dim fieldNames As IEnumerable(Of String)
 
Dim instance As New UAEnumDefinition(fieldNames)
public UAEnumDefinition( 
   IEnumerable<string> fieldNames
)
public:
UAEnumDefinition( 
   IEnumerable<String^>^ fieldNames
)

Parameters

fieldNames
Names of enum fields.

The value of this parameter cannot be null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also